# -*- coding: utf-8 -*-

import os
class Data:
    X=[]
    Y=[]

    filename = "Data/corpus-news-labeled.txt"
    def __init__(self):

        with open(self.filename,"r") as f:
            for line  in f.readlines():
                s = line.split("\t")
                assert(len(s) == 2)
                self.X.append(s[1])
                self.Y.append(s[0])

        print("Number of X:",len(self.X))
        print("Number of Y:",len(self.Y))
        pass

if __name__ == "__main__":
    data = Data()
    print(data.Y)
    pass